From 7386f7abda178b21b025850ccd94c4593a5c60d6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 9 Aug 2020 13:05:41 +0100 Subject: [PATCH] d/rules: Explicitly build documentation during build step By default this is only done during the install step, because gtk-doc is relatively slow and cannot tell Meson how its dependency tree looks. However, for GTK that breaks some dependency tracking, leading to required Docbook files not being generated from their Markdown source. --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index 34d08573fa..ed69010ecd 100755 --- a/debian/rules +++ b/debian/rules @@ -159,6 +159,14 @@ endif override_dh_auto_build: dh_auto_build --builddirectory=debian/build/deb +ifneq ($(filter %-doc,$(built_binaries)),) + # Explicitly build the documentation: otherwise it's done as a + # side-effect of the install step, which doesn't respect the + # dependencies that generate Docbook files from markdown. + # https://github.com/mesonbuild/meson/issues/1844 + # https://github.com/mesonbuild/meson/issues/5793 + dh_auto_build --builddirectory=debian/build/deb -- gdk4-doc gsk4-doc gtk4-doc +endif ifneq ($(filter %-udeb,$(built_binaries)),) dh_auto_build --builddirectory=debian/build/udeb endif -- 2.30.2